package com.lxmes.business.mapper;

import java.util.List;
import com.lxmes.business.domain.ZcOrderCostAccounting;
import com.lxmes.common.annotation.DataScope;

/**
 * 订单成本核算Mapper接口
 *
 * @author lx
 * @date 2023-06-21
 */
public interface ZcOrderCostAccountingMapper
{
    /**
     * 查询订单成本核算
     *
     * @param id 订单成本核算主键
     * @return 订单成本核算
     */
    public ZcOrderCostAccounting selectZcOrderCostAccountingById(Long id);

    /**
     * 查询订单成本核算列表
     *
     * @param zcOrderCostAccounting 订单成本核算
     * @return 订单成本核算集合
     */
    public List<ZcOrderCostAccounting> selectZcOrderCostAccountingList(ZcOrderCostAccounting zcOrderCostAccounting);

    /**
     * 新增订单成本核算
     *
     * @param zcOrderCostAccounting 订单成本核算
     * @return 结果
     */
    @DataScope(deptAlias = "de", userAlias = "de")
    public int insertZcOrderCostAccounting(ZcOrderCostAccounting zcOrderCostAccounting);

    /**
     * 修改订单成本核算
     *
     * @param zcOrderCostAccounting 订单成本核算
     * @return 结果
     */
    public int updateZcOrderCostAccounting(ZcOrderCostAccounting zcOrderCostAccounting);

    /**
     * 删除订单成本核算
     *
     * @param id 订单成本核算主键
     * @return 结果
     */
    public int deleteZcOrderCostAccountingById(Long id);

    /**
     * 批量删除订单成本核算
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteZcOrderCostAccountingByIds(Long[] ids);
}
